/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package F.Demo;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 *
 * @author Administrator
 */
public class OutputsDemo {
    public static  void mian(String[]args) throws FileNotFoundException{
        File file=new File("c:\\","text.txt");
        FileOutputStream f=new FileOutputStream(file,false);
        PrintWriter p=new PrintWriter(f,true);
        
        p.println("没有前途的日子");
        System.out.println();
    }

}
